﻿using BCCommon;
using BCDto.OA.BusinessTypeRecord;
using System;
using System.Collections.Generic;

namespace BCService.OA.BusinessTypeRecord
{
    /// <summary>
    /// OA业务类型
    /// </summary>
    public interface IBusinessTypeRecordService
    {
        /// <summary>
        /// 分页获取OA业务类型记录(列表)
        /// </summary>
        /// <param name="typeName"></param>
        /// <param name="start">创建时间开始</param>
        /// <param name="end">创建时间结束</param>
        /// <param name="ascending">是否升序排序</param>
        /// <param name="pageIndex">分页页码</param>
        /// <param name="pageSize">分页页数</param>
        /// <returns></returns>
        PageableList<BusinessTypeRecordDto> GetList(string typeName, DateTime? start, DateTime? end, bool? ascending, int pageIndex, int pageSize);
        

        /// <summary>
        /// 新创建一个OA业务类型
        /// </summary>
        /// <param name="requestDto"></param>
        /// <returns></returns>
        BusinessTypeRecordDto Create(BusinessTypeRecordRequestDto requestDto);
        /// <summary>
        /// 修改一个OA业务类型
        /// </summary>
        /// <param name="businessTypeRecordId"></param>
        /// <param name="requestDto"></param>
        /// <returns></returns>
        BusinessTypeRecordDto Update(long businessTypeRecordId, BusinessTypeRecordRequestDto requestDto);
    }
}
